package com.zeus.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * @author 冯扬龙
 * @date 2021/6/10 12:19
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {

    private Integer  id;
    private Integer postId;
    private String uname;
    private String content;
    private Date ctime;
    private Integer parent;

    /**
     * 前端渲染，对着物品点击查看详情以后进入到详情页面
     * 评论里还有评论
     */
    private List<Comment>  list;

}
